<template>
  <!-- 我关注的名师 -->
  <div class="attentionTeacherBox">
    <x-header :left-options="{showBack: true,backText:'我关注的名师'}" class="headerBox"></x-header>
    <div v-for="(item,index) in hotGroupList" class="groupList">
      <div class="groupList-left">
        <div class="picture">
          <img :src="item.img" />
        </div>
        <div class="grouplist-type">
          <div class="grouplist-type-title flex">
            {{item.title}}
            <div class="grouplist-typeTag">三级</div>
          </div>
          <div class="grouplist-type-member">{{item.attention}}人关注</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { XHeader } from "vux";
export default {
  components: {
    XHeader
  },
  data() {
    return {
      hotGroupList: [
        {
          title: '凤栖原老师',
          attention: '38651',
          img: require('../assets/images/head08.png'),
        },
        {
          title: '诸葛亮老师',
          attention: '3821',
          img: require('../assets/images/head08.png'),
        },
        {
          title: '周瑜老师',
          attention: '385',
          img: require('../assets/images/head08.png'),
        },
      ]
    }
  },
}
</script>

<style lang="less" scoped>
.attentionTeacherBox {
  // 头部导航
  /deep/.headerBox {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    .vux-header-left {
      left: 24px;
      .vux-header-back {
        color: #000;
      }
      .left-arrow:before {
        border-color: #000;
      }
    }
  }
  .groupTitle {
    padding: 20px;
    background-color: #fff;
    font: bold 30px '微软雅黑';
  }
  .groupList {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px 26px;
    border-bottom: 20px solid #f8f9fa;
    .groupList-left {
      display: flex;
      flex-grow: 1;
      align-items: center;
      /* justify-content: center; */
      .picture {
        width: 150px;
        height: 150px;
        img {
          width: 100%;
          height: 100%;
        }
      }

      .grouplist-type {
        margin: 0 40px;
        .grouplist-type-title {
          margin: 30px 0;
          font-size: 30px;
          font-weight: bold;
          .grouplist-typeTag {
            background-color: #ff925c;
            color: #fff;
            box-sizing: border-box;
            padding: 2px 20px;
            margin-left: 10px;
            border-radius: 20px;
            font: 400 22px '微软雅黑';
          }
        }
        .grouplist-type-member {
          margin: 30px 0;
          color: #858585;
          font-size: 25px;
        }
      }
    }

    .groupList-right {
      display: flex;
      justify-items: center;
      align-items: center;
      background-color: #ffe3d4;
      color: #ff4e00;
      padding: 10px 30px;
      border-radius: 50px;
      font-size: 30px;
      img {
        width: 25px;
        height: 25px;
        margin-right: 10px;
      }
    }
  }
}
</style>